package action;

import javafx.beans.property.DoubleProperty;
import javafx.beans.property.StringProperty;

public class ProcessHistory {
    //时间，来源CPU，runningtime
    public DoubleProperty Time;

    //状态，来源自定义5状态
    public StringProperty status;

    //进程名称，来源PCB
    public StringProperty process;

    //操作，占用设备(来源device)、执行指令（来源）、等待唤醒
    public StringProperty operation;

    public double getTime() {
        return Time.get();
    }

    public DoubleProperty timeProperty() {
        return Time;
    }

    public String getStatus() {
        return status.get();
    }

    public StringProperty statusProperty() {
        return status;
    }

    public String getProcess() {
        return process.get();
    }

    public StringProperty processProperty() {
        return process;
    }

    public String getOperation() {
        return operation.get();
    }

    public StringProperty operationProperty() {
        return operation;
    }

    public String getResult() {
        return result.get();
    }

    public StringProperty resultProperty() {
        return result;
    }

    //详细结果，占用设备对象、执行指令中间结果，最终结果
    public StringProperty result;

    public ProcessHistory(){
    }

    public ProcessHistory(DoubleProperty time,StringProperty status,StringProperty process,StringProperty operation,StringProperty result){
        this.Time=time;
        this.status=status;
        this.process=process;
        this.operation=operation;
        this.result=result;
    }
}
